import request from '@/utils/request'
import qs from 'qs'
export function login(data) {
  const url = '/api/login'
  return request({
    url: url,
    method: 'post',
    data: qs.stringify(data),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export function reqUserInfo() {
  const url = `/api/getInfo`
  return request({
    url: url,
    method: 'get',
    
  })
}


export function reqLogout() {
  const url = '/api/logout'
  return request({
    url: url,
    method: 'post',
    
  })

}
export function getall() {
  const url = '/api/getall'
  return request({
    url: url,
    method: 'get'
  })
}
